﻿using MiniExcelLibs.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Taoyl.CodeTraceModels
{
    public class CodeRecord
    {
        [SugarColumn(IsPrimaryKey =true)]
        [ExcelColumnWidth(50)]
        [ExcelColumnName("电机条码")]
        public string MotorCode { get; set; }
        [ExcelColumnWidth(25)]
        [ExcelColumnName("测试时间")]
        public DateTime InsertTime { get; set; }
        [ExcelColumnWidth(15)]
        [ExcelColumnName("空载电流")]
        public string NoLoadCurrent { get; set; }
        [ExcelColumnWidth(15)]
        [ExcelColumnName("空载转速")]
        public string NoLoadSpeed { get; set; }
        [ExcelColumnWidth(15)]
        [ExcelColumnName("轴伸长度")]
        public string AxisElongation { get; set; }
        [ExcelColumnWidth(15)]
        [ExcelColumnName("滚花直径")]
        public string Diameter { get; set; }
        [SugarColumn(IsNullable =true)]
        [ExcelColumnWidth(15)]
        [ExcelColumnName("正转噪音")]
        public string PositiveNoise { get; set; }
        [SugarColumn(IsNullable = true)]
        [ExcelColumnWidth(15)]
        [ExcelColumnName("反转噪音")]
        public string NegativeNoise { get; set; }
        [SugarColumn(IsNullable = true)]
        [ExcelColumnWidth(15)]
        [ExcelColumnName("噪音差值")]
        public string NoiseDiff { get; set; }
        [SugarColumn(IsNullable = true)]
        [ExcelColumnWidth(15)]
        [ExcelColumnName("负载电流")]
        public string LoadCurrent { get; set; }
        [SugarColumn(IsNullable = true)]
        [ExcelColumnWidth(15)]
        [ExcelColumnName("负载转速")]
        public string LoadSpeed { get; set; }
        [ExcelIgnore]
        public string CodeState { get; set; }
        [ExcelColumnWidth(15)]
        [ExcelColumnName("测试结果")]
        public string MeasureResult { get; set; } = "NG";
    }
}
